package com.quartz.springbootquartz.web;

import org.quartz.SchedulerFactory;
import org.quartz.impl.StdSchedulerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description quartz配置类
 * @Author longdeng
 * @Date 2020/7/27 0027 22:52
 */
@Configuration
public class QuartzConfig {

    /**
     * 配置quartz的构建scheduler工厂类
     *
     * @return
     */
    @Bean
    public SchedulerFactory getSchedulerFactory() {
        SchedulerFactory factory = new StdSchedulerFactory();
        return factory;
    }

}
